<?php
	require_once('session.php');
	require_once('redirect.php');
	require_once('query.php');
	require_once('facebookauth.php');
	
	if (!isset($_SESSION['uid']) || $_SESSION['facebookid'] != $facebookID)
		redirect('http://testcb.untoldthegame.com/facebooktesting/www/login.php/');
	
	$drupaluid = $_SESSION['uid'];
	
	$drupalname_request = execute_query("SELECT name FROM untol1_testdru.druusers WHERE uid = %s", $drupaluid);
	$row = mysql_fetch_assoc($drupalname_request);
	$drupalname = $row['name'];
?>
